/*
 * @Author: xyf
 * @Date: 2021-06-28 18:23:11
 * @LastEditTime: 2021-06-29 10:54:37
 * @LastEditors: xyf
 * @Description: 示例
 */
import request from '@/utils/request'

/**
 * @description: 请求mock示例
 * @param {*} data
 * 例：
 * {
 *    name {string} - 名称
 * }
 */
export function sampleMock(data) {
  return request({
    data,
    method: 'get',
    url: '/market/label/second/list',
    mock: true
  })
}

/**
 * @description: 请求后台接口示例
 * @param {*} data
 */
export function sampleBackstage(data) {
  return request({
    data,
    method: 'post',
    url: '/login',
    mock: false
  })
}
